.class public Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;
.super Landroid/widget/FrameLayout;
.source "MaterialShowcaseView.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$Builder;,
        Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$UpdateOnGlobalLayout;
    }
.end annotation


# instance fields
.field private mAnimationFactory:Luk/co/deanwild/materialshowcaseview/AnimationFactory;

.field private mBitmap:Landroid/graphics/Bitmap;

.field private mBottomMargin:I

.field private mCanvas:Landroid/graphics/Canvas;

.field private mContentBottomMargin:I

.field private mContentBox:Landroid/view/View;

.field private mContentImage:Landroid/widget/ImageView;

.field private mContentTextView:Landroid/widget/TextView;

.field private mContentTopMargin:I

.field private mDelayInMillis:J

.field private mDetachedListener:Luk/co/deanwild/materialshowcaseview/IDetachedListener;

.field private mDismissButton:Landroid/widget/TextView;

.field private mDismissOnTouch:Z

.field private mEraser:Landroid/graphics/Paint;

.field private mFadeDurationInMillis:J

.field private mGravity:I

.field private mHandler:Landroid/os/Handler;

.field private mLayoutListener:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$UpdateOnGlobalLayout;

.field mListeners:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Luk/co/deanwild/materialshowcaseview/IShowcaseListener;",
            ">;"
        }
    .end annotation
.end field

.field private mMaskColour:I

.field private mOldHeight:I

.field private mOldWidth:I

.field private mPrefsManager:Luk/co/deanwild/materialshowcaseview/PrefsManager;

.field private mShape:Luk/co/deanwild/materialshowcaseview/Shape;

.field private mShouldAnimate:Z

.field private mShouldPerformClick:Z

.field private mShouldRender:Z

.field private mSingleUse:Z

.field private mTarget:Luk/co/deanwild/materialshowcaseview/Target;

.field private mWasDismissed:Z

.field private mXPosition:I

.field private mYPosition:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    .line 74
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    .line 47
    iput-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mWasDismissed:Z

    .line 55
    iput-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDismissOnTouch:Z

    .line 56
    iput-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShouldRender:Z

    .line 57
    iput-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShouldPerformClick:Z

    const/4 v1, 0x1

    .line 60
    iput-boolean v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShouldAnimate:Z

    const-wide/16 v1, 0x12c

    .line 61
    iput-wide v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mFadeDurationInMillis:J

    const-wide/16 v1, 0x0

    .line 63
    iput-wide v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDelayInMillis:J

    .line 64
    iput v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mBottomMargin:I

    .line 65
    iput-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mSingleUse:Z

    .line 75
    invoke-direct {p0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->init(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic access$100(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)Luk/co/deanwild/materialshowcaseview/Target;
    .locals 0

    .line 36
    iget-object p0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mTarget:Luk/co/deanwild/materialshowcaseview/Target;

    return-object p0
.end method

.method static synthetic access$1000(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;J)V
    .locals 0

    .line 36
    invoke-direct {p0, p1, p2}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setDelay(J)V

    return-void
.end method

.method static synthetic access$1300(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)Luk/co/deanwild/materialshowcaseview/Shape;
    .locals 0

    .line 36
    iget-object p0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShape:Luk/co/deanwild/materialshowcaseview/Shape;

    return-object p0
.end method

.method static synthetic access$1302(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;Luk/co/deanwild/materialshowcaseview/Shape;)Luk/co/deanwild/materialshowcaseview/Shape;
    .locals 0

    .line 36
    iput-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShape:Luk/co/deanwild/materialshowcaseview/Shape;

    return-object p1
.end method

.method static synthetic access$1400(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)Z
    .locals 0

    .line 36
    iget-boolean p0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShouldAnimate:Z

    return p0
.end method

.method static synthetic access$1500(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)V
    .locals 0

    .line 36
    invoke-direct {p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->notifyOnDisplayed()V

    return-void
.end method

.method static synthetic access$200(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;Ljava/lang/CharSequence;)V
    .locals 0

    .line 36
    invoke-direct {p0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setDismissText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method static synthetic access$300(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;I)V
    .locals 0

    .line 36
    invoke-direct {p0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setDismissTextBackground(I)V

    return-void
.end method

.method static synthetic access$400(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;Ljava/lang/CharSequence;)V
    .locals 0

    .line 36
    invoke-direct {p0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setContentText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method static synthetic access$500(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;Landroid/graphics/drawable/Drawable;)V
    .locals 0

    .line 36
    invoke-direct {p0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setImageRecource(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method static synthetic access$700(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;I)V
    .locals 0

    .line 36
    invoke-direct {p0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setMaskColour(I)V

    return-void
.end method

.method private applyLayoutParams()V
    .locals 5

    .line 300
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentBox:Landroid/view/View;

    if-eqz v0, :cond_3

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 301
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentBox:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v1, 0x0

    .line 305
    iget v2, v0, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I

    iget v3, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentBottomMargin:I

    const/4 v4, 0x1

    if-eq v2, v3, :cond_0

    .line 306
    iput v3, v0, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I

    const/4 v1, 0x1

    .line 310
    :cond_0
    iget v2, v0, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I

    iget v3, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentTopMargin:I

    if-eq v2, v3, :cond_1

    .line 311
    iput v3, v0, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I

    const/4 v1, 0x1

    .line 315
    :cond_1
    iget v2, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    iget v3, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mGravity:I

    if-eq v2, v3, :cond_2

    .line 316
    iput v3, v0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    const/4 v1, 0x1

    :cond_2
    if-eqz v1, :cond_3

    .line 324
    iget-object v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentBox:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_3
    return-void
.end method

.method public static getSoftButtonsBarSizePort(Landroid/app/Activity;)I
    .locals 3

    .line 756
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/4 v1, 0x0

    const/16 v2, 0x11

    if-lt v0, v2, :cond_0

    .line 757
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    .line 758
    invoke-virtual {p0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v2

    invoke-interface {v2}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 759
    iget v2, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    .line 760
    invoke-virtual {p0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object p0

    invoke-interface {p0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object p0

    invoke-virtual {p0, v0}, Landroid/view/Display;->getRealMetrics(Landroid/util/DisplayMetrics;)V

    .line 761
    iget p0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    if-le p0, v2, :cond_0

    sub-int/2addr p0, v2

    return p0

    :cond_0
    return v1
.end method

.method private init(Landroid/content/Context;)V
    .locals 2

    const/4 p1, 0x0

    .line 96
    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->setWillNotDraw(Z)V

    .line 99
    new-instance p1, Luk/co/deanwild/materialshowcaseview/AnimationFactory;

    invoke-direct {p1}, Luk/co/deanwild/materialshowcaseview/AnimationFactory;-><init>()V

    iput-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mAnimationFactory:Luk/co/deanwild/materialshowcaseview/AnimationFactory;

    .line 101
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mListeners:Ljava/util/List;

    .line 104
    new-instance p1, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$UpdateOnGlobalLayout;

    const/4 v0, 0x0

    invoke-direct {p1, p0, v0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$UpdateOnGlobalLayout;-><init>(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$1;)V

    iput-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mLayoutListener:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$UpdateOnGlobalLayout;

    .line 105
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object p1

    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mLayoutListener:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$UpdateOnGlobalLayout;

    invoke-virtual {p1, v0}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    .line 108
    invoke-virtual {p0, p0}, Landroid/widget/FrameLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    const-string p1, "#dd335075"

    .line 110
    invoke-static {p1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mMaskColour:I

    const/4 p1, 0x4

    .line 111
    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 114
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    sget v0, Luk/co/deanwild/materialshowcaseview/R$layout;->showcase_content:I

    const/4 v1, 0x1

    invoke-virtual {p1, v0, p0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 115
    sget v0, Luk/co/deanwild/materialshowcaseview/R$id;->content_box:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentBox:Landroid/view/View;

    .line 116
    sget v0, Luk/co/deanwild/materialshowcaseview/R$id;->tv_content:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentTextView:Landroid/widget/TextView;

    .line 117
    sget v0, Luk/co/deanwild/materialshowcaseview/R$id;->tv_dismiss:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDismissButton:Landroid/widget/TextView;

    .line 118
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDismissButton:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 119
    sget v0, Luk/co/deanwild/materialshowcaseview/R$id;->tv_image:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentImage:Landroid/widget/ImageView;

    return-void
.end method

.method private isViewWasClicked(Landroid/view/MotionEvent;)Z
    .locals 3

    .line 208
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShape:Luk/co/deanwild/materialshowcaseview/Shape;

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    iget-object v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mTarget:Luk/co/deanwild/materialshowcaseview/Target;

    invoke-interface {v0, v1, p1, v2}, Luk/co/deanwild/materialshowcaseview/Shape;->pointInBounds(FFLuk/co/deanwild/materialshowcaseview/Target;)Z

    move-result p1

    return p1
.end method

.method private notifyOnDismissed()V
    .locals 2

    .line 218
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mListeners:Ljava/util/List;

    if-eqz v0, :cond_1

    .line 219
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Luk/co/deanwild/materialshowcaseview/IShowcaseListener;

    .line 220
    invoke-interface {v1, p0}, Luk/co/deanwild/materialshowcaseview/IShowcaseListener;->onShowcaseDismissed(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)V

    goto :goto_0

    .line 223
    :cond_0
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    const/4 v0, 0x0

    .line 224
    iput-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mListeners:Ljava/util/List;

    .line 230
    :cond_1
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDetachedListener:Luk/co/deanwild/materialshowcaseview/IDetachedListener;

    if-eqz v0, :cond_2

    .line 231
    iget-boolean v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mWasDismissed:Z

    invoke-interface {v0, p0, v1}, Luk/co/deanwild/materialshowcaseview/IDetachedListener;->onShowcaseDetached(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;Z)V

    :cond_2
    return-void
.end method

.method private notifyOnDisplayed()V
    .locals 2

    .line 212
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mListeners:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Luk/co/deanwild/materialshowcaseview/IShowcaseListener;

    .line 213
    invoke-interface {v1, p0}, Luk/co/deanwild/materialshowcaseview/IShowcaseListener;->onShowcaseDisplayed(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)V

    goto :goto_0

    :cond_0
    return-void
.end method

.method private setContentText(Ljava/lang/CharSequence;)V
    .locals 1

    .line 342
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentTextView:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    .line 343
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method private setContentTextColor(I)V
    .locals 1

    .line 354
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentTextView:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    .line 355
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_0
    return-void
.end method

.method private setDelay(J)V
    .locals 0

    .line 385
    iput-wide p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDelayInMillis:J

    return-void
.end method

.method private setDismissOnTouch(Z)V
    .locals 0

    .line 372
    iput-boolean p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDismissOnTouch:Z

    return-void
.end method

.method private setDismissText(Ljava/lang/CharSequence;)V
    .locals 1

    .line 348
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDismissButton:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    .line 349
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method private setDismissTextBackground(I)V
    .locals 1

    .line 366
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDismissButton:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    .line 367
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    :cond_0
    return-void
.end method

.method private setDismissTextColor(I)V
    .locals 1

    .line 360
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDismissButton:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    .line 361
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_0
    return-void
.end method

.method private setFadeDuration(J)V
    .locals 0

    .line 389
    iput-wide p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mFadeDurationInMillis:J

    return-void
.end method

.method private setImageRecource(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    .line 411
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDismissButton:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    if-eqz p1, :cond_0

    .line 412
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentImage:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    :cond_0
    return-void
.end method

.method private setMaskColour(I)V
    .locals 0

    .line 381
    iput p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mMaskColour:I

    return-void
.end method

.method private setShouldRender(Z)V
    .locals 0

    .line 377
    iput-boolean p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShouldRender:Z

    return-void
.end method


# virtual methods
.method public fadeIn()V
    .locals 4

    const/4 v0, 0x4

    .line 707
    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 709
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mAnimationFactory:Luk/co/deanwild/materialshowcaseview/AnimationFactory;

    iget-wide v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mFadeDurationInMillis:J

    new-instance v3, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$2;

    invoke-direct {v3, p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$2;-><init>(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)V

    invoke-virtual {v0, p0, v1, v2, v3}, Luk/co/deanwild/materialshowcaseview/AnimationFactory;->fadeInView(Landroid/view/View;JLuk/co/deanwild/materialshowcaseview/IAnimationFactory$AnimationStartListener;)V

    return-void
.end method

.method public fadeOut()V
    .locals 4

    .line 722
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mAnimationFactory:Luk/co/deanwild/materialshowcaseview/AnimationFactory;

    iget-wide v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mFadeDurationInMillis:J

    new-instance v3, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$3;

    invoke-direct {v3, p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$3;-><init>(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)V

    invoke-virtual {v0, p0, v1, v2, v3}, Luk/co/deanwild/materialshowcaseview/AnimationFactory;->fadeOutView(Landroid/view/View;JLuk/co/deanwild/materialshowcaseview/IAnimationFactory$AnimationEndListener;)V

    return-void
.end method

.method public hide()V
    .locals 1

    const/4 v0, 0x1

    .line 697
    iput-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mWasDismissed:Z

    .line 699
    iget-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShouldAnimate:Z

    if-eqz v0, :cond_0

    .line 700
    invoke-virtual {p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->fadeOut()V

    goto :goto_0

    .line 702
    :cond_0
    invoke-virtual {p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->removeFromWindow()V

    :goto_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 0

    .line 242
    invoke-virtual {p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->hide()V

    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 1

    .line 179
    invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V

    .line 186
    iget-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mWasDismissed:Z

    if-nez v0, :cond_1

    iget-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mSingleUse:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mPrefsManager:Luk/co/deanwild/materialshowcaseview/PrefsManager;

    if-nez v0, :cond_0

    goto :goto_0

    .line 187
    :cond_0
    invoke-virtual {v0}, Luk/co/deanwild/materialshowcaseview/PrefsManager;->resetShowcase()V

    const/4 v0, 0x0

    throw v0

    .line 191
    :cond_1
    :goto_0
    invoke-direct {p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->notifyOnDismissed()V

    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 5

    .line 132
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onDraw(Landroid/graphics/Canvas;)V

    .line 135
    iget-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShouldRender:Z

    if-nez v0, :cond_0

    return-void

    .line 138
    :cond_0
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getMeasuredWidth()I

    move-result v0

    .line 139
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getMeasuredHeight()I

    move-result v1

    .line 142
    iget-object v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mBitmap:Landroid/graphics/Bitmap;

    if-eqz v2, :cond_1

    iget-object v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mCanvas:Landroid/graphics/Canvas;

    if-eqz v2, :cond_1

    iget v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mOldHeight:I

    if-ne v2, v1, :cond_1

    iget v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mOldWidth:I

    if-eq v2, v0, :cond_3

    .line 144
    :cond_1
    iget-object v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mBitmap:Landroid/graphics/Bitmap;

    if-eqz v2, :cond_2

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->recycle()V

    .line 146
    :cond_2
    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v2

    iput-object v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mBitmap:Landroid/graphics/Bitmap;

    .line 149
    new-instance v2, Landroid/graphics/Canvas;

    iget-object v3, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mBitmap:Landroid/graphics/Bitmap;

    invoke-direct {v2, v3}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    iput-object v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mCanvas:Landroid/graphics/Canvas;

    .line 153
    :cond_3
    iput v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mOldWidth:I

    .line 154
    iput v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mOldHeight:I

    .line 157
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mCanvas:Landroid/graphics/Canvas;

    const/4 v1, 0x0

    sget-object v2, Landroid/graphics/PorterDuff$Mode;->CLEAR:Landroid/graphics/PorterDuff$Mode;

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V

    .line 160
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mCanvas:Landroid/graphics/Canvas;

    iget v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mMaskColour:I

    invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->drawColor(I)V

    .line 163
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mEraser:Landroid/graphics/Paint;

    if-nez v0, :cond_4

    .line 164
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mEraser:Landroid/graphics/Paint;

    .line 165
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mEraser:Landroid/graphics/Paint;

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 166
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mEraser:Landroid/graphics/Paint;

    new-instance v1, Landroid/graphics/PorterDuffXfermode;

    sget-object v2, Landroid/graphics/PorterDuff$Mode;->CLEAR:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v1, v2}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 167
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mEraser:Landroid/graphics/Paint;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setFlags(I)V

    .line 171
    :cond_4
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShape:Luk/co/deanwild/materialshowcaseview/Shape;

    iget-object v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mCanvas:Landroid/graphics/Canvas;

    iget-object v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mEraser:Landroid/graphics/Paint;

    iget v3, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mXPosition:I

    iget v4, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mYPosition:I

    invoke-interface {v0, v1, v2, v3, v4}, Luk/co/deanwild/materialshowcaseview/Shape;->draw(Landroid/graphics/Canvas;Landroid/graphics/Paint;II)V

    .line 174
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mBitmap:Landroid/graphics/Bitmap;

    const/4 v1, 0x0

    const/4 v2, 0x0

    invoke-virtual {p1, v0, v2, v2, v1}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    return-void
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 0

    .line 197
    iget-boolean p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDismissOnTouch:Z

    if-eqz p1, :cond_0

    .line 198
    invoke-virtual {p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->hide()V

    goto :goto_0

    .line 199
    :cond_0
    iget-boolean p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShouldPerformClick:Z

    if-eqz p1, :cond_1

    invoke-direct {p0, p2}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->isViewWasClicked(Landroid/view/MotionEvent;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 200
    invoke-virtual {p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->hide()V

    const/4 p1, 0x0

    return p1

    :cond_1
    :goto_0
    const/4 p1, 0x1

    return p1
.end method

.method public removeFromWindow()V
    .locals 3

    .line 625
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    instance-of v0, v0, Landroid/view/ViewGroup;

    if-eqz v0, :cond_0

    .line 626
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 629
    :cond_0
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mBitmap:Landroid/graphics/Bitmap;

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    .line 630
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 631
    iput-object v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mBitmap:Landroid/graphics/Bitmap;

    .line 634
    :cond_1
    iput-object v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mEraser:Landroid/graphics/Paint;

    .line 635
    iput-object v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mAnimationFactory:Luk/co/deanwild/materialshowcaseview/AnimationFactory;

    .line 636
    iput-object v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mCanvas:Landroid/graphics/Canvas;

    .line 637
    iput-object v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mHandler:Landroid/os/Handler;

    .line 639
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    iget-object v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mLayoutListener:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$UpdateOnGlobalLayout;

    invoke-virtual {v0, v2}, Landroid/view/ViewTreeObserver;->removeGlobalOnLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    .line 640
    iput-object v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mLayoutListener:Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$UpdateOnGlobalLayout;

    .line 642
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mPrefsManager:Luk/co/deanwild/materialshowcaseview/PrefsManager;

    if-nez v0, :cond_2

    .line 645
    iput-object v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mPrefsManager:Luk/co/deanwild/materialshowcaseview/PrefsManager;

    return-void

    .line 643
    :cond_2
    invoke-virtual {v0}, Luk/co/deanwild/materialshowcaseview/PrefsManager;->close()V

    throw v1
.end method

.method public setConfig(Luk/co/deanwild/materialshowcaseview/ShowcaseConfig;)V
    .locals 0

    .line 422
    invoke-virtual {p1}, Luk/co/deanwild/materialshowcaseview/ShowcaseConfig;->getDelay()J

    const/4 p1, 0x0

    throw p1
.end method

.method setDetachedListener(Luk/co/deanwild/materialshowcaseview/IDetachedListener;)V
    .locals 0

    .line 403
    iput-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDetachedListener:Luk/co/deanwild/materialshowcaseview/IDetachedListener;

    return-void
.end method

.method setPosition(II)V
    .locals 0

    .line 337
    iput p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mXPosition:I

    .line 338
    iput p2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mYPosition:I

    return-void
.end method

.method setPosition(Landroid/graphics/Point;)V
    .locals 1

    .line 333
    iget v0, p1, Landroid/graphics/Point;->x:I

    iget p1, p1, Landroid/graphics/Point;->y:I

    invoke-virtual {p0, v0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setPosition(II)V

    return-void
.end method

.method public setShape(Luk/co/deanwild/materialshowcaseview/Shape;)V
    .locals 0

    .line 407
    iput-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShape:Luk/co/deanwild/materialshowcaseview/Shape;

    return-void
.end method

.method public setTarget(Luk/co/deanwild/materialshowcaseview/Target;)V
    .locals 4

    .line 253
    iput-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mTarget:Luk/co/deanwild/materialshowcaseview/Target;

    .line 255
    iget-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mTarget:Luk/co/deanwild/materialshowcaseview/Target;

    if-eqz p1, :cond_3

    .line 260
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v0, 0x15

    if-lt p1, v0, :cond_0

    .line 261
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object p1

    check-cast p1, Landroid/app/Activity;

    invoke-static {p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->getSoftButtonsBarSizePort(Landroid/app/Activity;)I

    move-result p1

    iput p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mBottomMargin:I

    .line 262
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Landroid/widget/FrameLayout$LayoutParams;

    if-eqz p1, :cond_0

    .line 264
    iget v0, p1, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I

    iget v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mBottomMargin:I

    if-eq v0, v1, :cond_0

    .line 265
    iput v1, p1, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I

    .line 269
    :cond_0
    iget-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mTarget:Luk/co/deanwild/materialshowcaseview/Target;

    invoke-interface {p1}, Luk/co/deanwild/materialshowcaseview/Target;->getPoint()Landroid/graphics/Point;

    move-result-object p1

    .line 270
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mTarget:Luk/co/deanwild/materialshowcaseview/Target;

    invoke-interface {v0}, Luk/co/deanwild/materialshowcaseview/Target;->getBounds()Landroid/graphics/Rect;

    move-result-object v0

    .line 271
    iget-object v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShape:Luk/co/deanwild/materialshowcaseview/Shape;

    if-eqz v1, :cond_1

    .line 272
    iget-object v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mTarget:Luk/co/deanwild/materialshowcaseview/Target;

    invoke-interface {v1, v2}, Luk/co/deanwild/materialshowcaseview/Shape;->updateTarget(Luk/co/deanwild/materialshowcaseview/Target;)V

    .line 273
    :cond_1
    invoke-virtual {p0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setPosition(Landroid/graphics/Point;)V

    .line 276
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getMeasuredHeight()I

    move-result v1

    .line 277
    div-int/lit8 v2, v1, 0x2

    .line 278
    iget p1, p1, Landroid/graphics/Point;->y:I

    .line 280
    invoke-virtual {v0}, Landroid/graphics/Rect;->height()I

    move-result v3

    invoke-virtual {v0}, Landroid/graphics/Rect;->width()I

    move-result v0

    invoke-static {v3, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    div-int/lit8 v0, v0, 0x2

    add-int/lit8 v0, v0, 0xa

    const/4 v3, 0x0

    if-le p1, v2, :cond_2

    .line 284
    iput v3, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentTopMargin:I

    sub-int/2addr v1, p1

    add-int/2addr v1, v0

    .line 285
    iput v1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentBottomMargin:I

    const/16 p1, 0x50

    .line 286
    iput p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mGravity:I

    goto :goto_0

    :cond_2
    add-int/2addr p1, v0

    .line 289
    iput p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentTopMargin:I

    .line 290
    iput v3, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mContentBottomMargin:I

    const/16 p1, 0x30

    .line 291
    iput p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mGravity:I

    .line 295
    :cond_3
    :goto_0
    invoke-direct {p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->applyLayoutParams()V

    return-void
.end method

.method public setmShouldPerformClick(Z)V
    .locals 0

    .line 448
    iput-boolean p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mShouldPerformClick:Z

    return-void
.end method

.method public show(Landroid/app/Activity;)Z
    .locals 4

    .line 662
    iget-boolean v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mSingleUse:Z

    if-nez v0, :cond_0

    .line 670
    invoke-virtual {p1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/view/ViewGroup;

    invoke-virtual {p1, p0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    const/4 p1, 0x1

    .line 672
    invoke-direct {p0, p1}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->setShouldRender(Z)V

    .line 674
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mHandler:Landroid/os/Handler;

    .line 675
    iget-object v0, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mHandler:Landroid/os/Handler;

    new-instance v1, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$1;

    invoke-direct {v1, p0}, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView$1;-><init>(Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;)V

    iget-wide v2, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mDelayInMillis:J

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return p1

    .line 663
    :cond_0
    iget-object p1, p0, Luk/co/deanwild/materialshowcaseview/MaterialShowcaseView;->mPrefsManager:Luk/co/deanwild/materialshowcaseview/PrefsManager;

    invoke-virtual {p1}, Luk/co/deanwild/materialshowcaseview/PrefsManager;->hasFired()Z

    const/4 p1, 0x0

    throw p1
.end method
